<!--
 * @Description: 
 * @Author: Binggan
 * @Date: 2019-09-10 10:53:47
 * @LastEditors  : Binggan
 * @LastEditTime : 2020-01-14 10:09:17
 -->
<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: "App",
  mounted() {
    if (
      "-ms-scroll-limit" in document.documentElement.style &&
      "-ms-ime-align" in document.documentElement.style
    ) {
      // detect it's IE11
      window.addEventListener(
        "hashchange",
        function(event) {
          var currentPath = window.location.hash.slice(1);
          if (store.state.route.path !== currentPath) {
            router.push(currentPath);
          }
        },
        false
      );
    }
  }
};
</script>

<style>
html,
body {
  width: 100%;
  height: 100%;
}
#app {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
}
</style>
